package com.ghao.douban.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Ghao
 * @date 2021/7/19 15:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_movie_info")
public class MovieInfo implements Serializable {

    /** 主键id */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /** 剧集信息，是否更新 */
    @TableField("episodes_info")
    private String episodesInfo;

    /** 评分 */
    @TableField("rate")
    private String rate;

    /** cover_x */
    @TableField("cover_x")
    private int coverX;

    /** cover_y */
    @TableField("cover_y")
    private int coverY;

    /** 名字 */
    @TableField("title")
    private String title;

    /** 影片详情url */
    @TableField("url")
    private String url;

    /** 是否可观看 */
    @TableField("playable")
    private boolean playable;

    /** 海报url */
    @TableField("cover")
    private String cover;

    /** 是否更新 */
    @TableField("is_new")
    private boolean isNew;
}
